//
//  main.m
//  Demo0009
//
//  Created by zTercel on 13-1-3.
//  Copyright (c) 2013年 zTercel. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Calculator.h"
#import "CalculatorEx.h"

int main(int argc, const char * argv[])
{
    @autoreleasepool {
        int left    = 100;
        int right   = 20;
        
        Calculator* calculator  = [[Calculator alloc] init];
        NSLog(@"add(%d, %d) = %d", left, right, [calculator add: left right: right]);
        NSLog(@"sub(%d, %d) = %d", left, right, [calculator sub: left right: right]);
        NSLog(@"mul(%d, %d) = %d", left, right, [calculator mul: left right: right]);
        NSLog(@"div(%d, %d) = %d", left, right, [calculator div: left right: right]);
        NSLog(@"mod(%d, %d) = %d", left, right, [calculator mod: left right: right]);
        [calculator print];
    }
    return 0;
}

